package com.cat.mediator;

/**
 * @author cat
 * @version 2025/5/27 19:37
 * @description 房主(具体同事类)
 * @since JDK17
 */

public class HouseOwner extends Person {
    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }

    public void contact(String message) {
        mediator.contact(message, this);
    }

    public void getMessage(String message) {
        System.out.println("房主" + name + " 获取信息：" + message);
    }
}
